]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: Focus clone when highlighting
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 20 Aug 2017 15:53:41 +0000 (17:53 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Oct 2017 16:12:27 +0000 (18:12 +0200)
We don't use different hover- and focus indications for window previews,
so using keyboard navigation after hovering a clone often has surprising
results when the previous focus window wasn't the selected one. Address
this by simply moving the keyboard focus with the highlight.

https://bugzilla.gnome.org/show_bug.cgi?id=786546

js/ui/workspace.js

index a377649139161008e052025fd55a4a239065bcb4..a64cf7dec03f02c204b4885c39d596e05d2190b7 100644 (file)
@@ -662,6 +662,7 @@ var WindowOverlay = new Lang.Class({
         if (this._hidden)
             return;
 
+        this._windowClone.actor.grab_key_focus();
         this._animateVisible();
         this.emit('show-close-button');
     },